package com.wwp.tbshop.presenter;

import com.wwp.tbshop.util.Constant;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by dada on 2017/6/14.
 */


public abstract class RetrofitUtil {

    public static Retrofit getRetrofit() {
        return new Retrofit
                .Builder()
                .baseUrl(Constant.HOST)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public static ApiService getApiService() {
        return getRetrofit().create(ApiService.class);
    }
}
